package com.uinnova.product.eam.dto;

import com.binary.framework.bean.annotation.Comment;
import lombok.Data;

import java.util.List;

@Comment("度量评分统计信息")
@Data
public class MeasureEvaluateStatisticDto {

    @Comment("指标规则")
    private List<MeasureRule> rules;
    @Comment("评分详情")
    private List<List<EvaluateDetail>> details;
    @Comment("指标汇总得分")
    private String totalScore;
    @Comment("指标设置最高分合计")
    private Integer totalMaxScore;

    @Data
    public static class MeasureRule {

        @Comment("度量配置详情id")
        private Long measureConfDetailId;
        @Comment("指标分类")
        private String indicatorClassify;
        @Comment("指标描述")
        private String indicatorDesc;
    }

    @Data
    public static class EvaluateDetail {

        public EvaluateDetail(String show, String hideContent, Boolean needTip) {
            this.show = show;
            this.hideContent = hideContent;
            this.needTip = needTip;
        }

        @Comment("显示名称")
        private String show;
        @Comment("隐藏内容")
        private String hideContent;
        @Comment("是否需要提示")
        private Boolean needTip;
    }
}
